package com.rz.htk.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rz.htk.order.entity.Commodity;
import com.rz.htk.order.entity.vo.OrderDeleteParam;

import java.util.List;

public interface CommodityService extends IService<Commodity>{

    public IPage<Commodity> getPage(Commodity commodity);

    public boolean batchDelete(OrderDeleteParam deleteParam);

    public boolean saveCommodity(Commodity commodity);

    public List<Commodity> getListCommodityBycode(String code);

    List<Commodity> getListCommodityBycodes(List<String> code);

    /**
     * 根据订单编号删除物品信息
     */

    public boolean deleteByCode(String code);
}
